package jpsearchcore;

public class OriginalImageIdentifier {
	
	private String OriginationofID = "";
	private String Identifier = "";
	
	public OriginalImageIdentifier(){}
	
	public OriginalImageIdentifier(String originationofID, String identifier) {
		OriginationofID = originationofID;
		Identifier = identifier;
	}

	public OriginalImageIdentifier(ImageIdentifierType iit){
		try{
			OriginationofID = iit.getOriginationOfID();
		}
		catch(NullPointerException e){}

		try{
			Identifier = iit.getIdentifier();
		}
		catch(NullPointerException e){}	
	}

	public String getOriginationofID() {
		return OriginationofID;
	}

	public String getIdentifier() {
		return Identifier;
	}
	
	public void setOriginationofID(String originationofID) {
		OriginationofID = originationofID;
	}

	public void setIdentifier(String identifier) {
		Identifier = identifier;
	}

	public String toString(){
		String output = "OriginalImageIdentifier:[\n\tOriginationofID: " + OriginationofID;
		output += "\n\tIdentifier: " + Identifier + "\n]";
		return output;
	}
}
